Skip to content

add example to FAQ block#24

Open
MarieComet wants to merge 1 commit into
developfrom
feat/add-faq-example
Open

add example to FAQ block#24
MarieComet wants to merge 1 commit into
developfrom
feat/add-faq-example

Conversation

@MarieComet
Copy link
Copy Markdown
Contributor

@MarieComet MarieComet commented May 19, 2026

Note

Low Risk
Low risk: only updates block.json metadata to include an editor example; no runtime logic or data handling changes.

Overview
Adds an example definition to the blockparty/faq block metadata so the editor can render a representative preview.

The example prepopulates an accordion FAQ with a nested faq-item containing a faq-question and faq-answer using placeholder text.

Reviewed by Cursor Bugbot for commit 2cb1ce4. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2cb1ce4. Configure here.

Comment thread src/faq/block.json
"name": "blockparty/faq-answer",
"attributes": {
"answer": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-existent answer attribute used in FAQ answer example

Medium Severity

The blockparty/faq-answer block doesn't have an answer attribute in its schema—its only attribute is isAccordion. The answer block renders its content via InnerBlocks (accepting core/paragraph, core/heading, etc.), so the example's "answer" attribute will be silently ignored and the block preview will show an empty answer panel. The content needs to be provided as a nested core/paragraph inner block with a content attribute instead.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2cb1ce4. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant